<!-- 选择图片弹窗 -->
<div class="modal fade" id="imgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">我的文件</h4>
            </div>
            <div class="modal-body">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-md-3">
                            <div style="display:none">{$search}</div>
                            <input hidden id="FolderID" value="">
                            <div id="Folders-content" class="list-group">

                            </div>
                        </div>
                        <div class="col-md-9">
                            <div class="row" id="file-content">


                            </div>
                            <div class="row ">
                                <div class="col-xs-12 text-center">
                                    {$show}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-upload btn-primary">本地上传</button>
                <button type="button" class="btn btn-img-ok btn-primary">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

<!-- 图片本地上传弹窗 -->
<div class="modal fade" id="uploadModal"  tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">上传图片</h4>
            </div>
            <div class="modal-body">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-xs-12">
                            <form id="uploadImg" action="" enctype="multipart/form-data">
                                <div class="form-group">
                                    <label>选择图片</label>
                                    <div id="imgdiv" style="margin: 10px 0">
                                        <img id="imgShow" class="img-responsive" width="200"/>
                                    </div>
                                    <input type="file" name="pic" id="up_img">
                                    <p class="help-block">仅支持jpg、gif、png三种格式, 大小不超过1MB</p>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-upload-ok btn-primary">上传</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>



<script>
    var $imgActive = "";//放置图片的对象
    var imgUrl= "";  //图片地址
    var unid= "";  //图片id
    var workpath= ""; //项目目录
    var $openMoadl = "";
</script>